package org.mj.im.common.model;


import org.mj.im.common.model.base.IMCommonCache;

public class IMBusinessCache<T> extends IMCommonCache {
    private T data;
    public IMBusinessCache<T> withData(T data) {
        this.data = data;
        this.exist = true;
        return this;
    }
    public IMBusinessCache<T> withVersion(long version) {
        this.version = version;
        return this;
    }
    public IMBusinessCache<T> retryLater(){
        this.retryLater = true;
        return this;
    }
    public IMBusinessCache<T> noExist(){
        this.exist = false;
        return this;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
